package com.water.locationservice.entites;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 汪胜彬
 * @version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Location
{
    private String address;
    private Content content;
    private String  status;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    static class Content{
        String address;
        AddressDetail addressDetail;
        Point point;

        @Data
        @AllArgsConstructor
        @NoArgsConstructor
        static class AddressDetail{
            String city;
            String city_code;
            String province;
        }
        @Data
        @AllArgsConstructor
        @NoArgsConstructor
        static class Point{
            String x;
            String y;
        }
    }
}


